module.exports = {
    pages: {
        portal: {
            entry: './src/portal/main.js',
            template: 'public/portal.html',
            filename: 'portal.html',
            title: '科研人员门户',
        },
        admin: {
            entry: './src/admin/main.js',
            template: 'public/admin.html',
            filename: 'admin.html',
            title: '管理员主页',
        },
        index: {
            entry: './src/index/main.js',
            template: 'public/index.html',
            filename: 'index.html',
            title: '学术网站',
        },
        detail: {
            entry: './src/detail/main.js',
            template: 'public/detail.html',
            filename: 'detail.html',
            title: '学术成果详情',
        },
        paperSearch: {
            entry: './src/paperSearch/main.js',
            template: 'public/paperSearch.html',
            filename: 'paperSearch.html',
            title: '论文搜索结果',
        },
        authorSearch: {
            entry: './src/authorSearch/main.js',
            template: 'public/authorSearch.html',
            filename: 'authorSearch.html',
            title: '学者搜索结果',
        },
        authorIndex: {
            entry: './src/authorIndex/main.js',
            template: 'public/authorIndex.html',
            filename: 'authorIndex.html',
            title: '学者搜索主页',
        },
        user: {
            entry: './src/user/main.js',
            template: 'public/user.html',
            filename: 'user.html',
            title: '用户'
        },
        manager: {
            entry: './src/manager/main.js',
            template: 'public/manager.html',
            filename: 'manager.html',
            title: '管理'
        },
        apply:{
            entry: './src/apply/main.js',
            template: 'public/apply.html',
            filename: 'apply.html',
            title: '申请'
        }
    },
    devServer: {
        proxy: {
            '/api': {
                target: 'http://49.234.115.34:8090/',
                changeOrigin: true,
                // ws: true,
                pathRewrite: {
                    '^/api': '/api'
                },
            }
            
        }
    },
    configureWebpack: {
        resolve: {
            alias: {
                'assets': '@/assets',
                'common': '@/common',
                'components': '@/components',
                'network': '@/network',
                'views': '@/views',
                'img': '@/img',
            }
        }
    },
    
}

